<template>
	<view>
		<view class="ziliao" v-if="ziliaolist.length>0">
			<view class="list" v-for="item in ziliaolist">
				<view >
					<a :href="item.url" target="_self" class="list-a">
						<text>{{item.title}}</text>
						<image src="../static/zhanhui/dw.png" mode="" style="width: 40upx;height: 38upx;"></image>
					</a>
				</view>
			</view>
		</view>
		<view class="ziliao" v-else>
			该商家暂未上传资料
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				shopId:'',
				ziliaolist:[]
			}
		},
		onLoad(option) {
			this.shopId = option.shopId
			uni.request({
				url: "http://dsx.cdzer.com/api/Shops/activities_file", //仅为示例，并非真实接口地址。
				data: {
					shop_id:option.shopId,
				},
				header: {
					'content-type': 'application/x-www-form-urlencoded',
				},
				method: 'POST',
				success: (res) => {
					console.log(res, "资料列表")
					this.ziliaolist=res.data.data
				}
			});
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.ziliao{
	width: 690upx;
	// height: 396upx;
	display: flex;
	flex-direction: column;
	padding: 30upx;
	margin: 0 auto;
	margin-top: 20upx;
	background-color: #fff;
	border-radius: 15upx;
	.list-a{
		display: flex;
		text-decoration: none;
		width: 100;
		height: 98upx;
		align-items: center;
		color: #333;
		justify-content: space-between;
		border-bottom: 2upx solid #F5F5F5;
	}
}
</style>
